/**
*      author: Y_Yao
*      created: 2025-02-26 10:35:10
**/

#include<bits/stdc++.h>

#define int LL
using namespace std;
using LL = long long;
const LL LLINF = 1e18;
const int INF = 0x3f3f3f3f;
int a,b,c;
int ans = LLINF;
int A[4];

void solve()
{
    cin >> a >> b >> c;
    if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0)
    {
        cout << "0" << endl;
        return;
    }
    //a
    int t1 = a / 2,t2 = (a + 1) / 2;
    ans = min((t2 - t1) * b * c,ans);
    t1 = b / 2,t2 = (b + 1) / 2;
    ans = min((t2 - t1) * a * c,ans);
    t1 = c / 2,t2 = (c + 1) / 2;
    ans = min((t2 - t1) * b * a,ans);
    cout << ans << endl;
}

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);

    int t = 1;
    //cin >> t;
    while(t--)
    {
        solve();
    }
    return 0;
}